// 自定义错误码
package global

type CustomError struct {
	ErrorCode int
	ErrorMsg  string
}

type CustomErrors struct {
	// 业务错误
	BusinessError CustomError
	// 参数验错误
	ValidateError CustomError
	// token鉴权错误
	TokenError CustomError
}

var Errors = CustomErrors{
	CustomError{40000, "业务错误"},
	CustomError{42200, "请求参数错误"},
	CustomError{40100, "登录授权失效"},
}
